
module SandBox
  class DynamicWindow < Window

    def dynamic_content
      #render().join
      "dynamic content"
    end

    def content
      id #trigger id generation
      render_element()
    end
    
    def open_js
      super() + 
        ";Ext.get('#{id}').load({url:'#{callback(:dynamic_content)}'})"
    end
  end
end